<?php

namespace common\logic\sms;

use common\logic\sms;

class SmsFactory {
    
    public static function SendObj($yun_type){
        switch ($yun_type){
            case SingleSend::NAME:
                return new SingleSend();
                break;
            case BatchSend::NAME:
                return new BatchSend();
                break;
            case TplSingleSend::NAME:
                return new TplSingleSend();
                break;
            default:
                return new SingleSend();
                break;
        }
    }
}
